<style>
    .layui-fixbar {
        display: none !important;
    }
    
    .img-wrap {
        width: 80px;
        height: 80px;
        display: table-cell;
        vertical-align: middle;
        text-align: center;
        cursor: pointer;
    }
    
    .img-wrap img {
        width: 100%;
        height: 100%;
    }
    
    .img-wrap .layui-icon {
        font-size: 40px;
    }
</style>
<div class="widget-head" style="margin-top:0;">
    <div class="widget-title">系统设置</div>
</div>
<div class="layui-container" style="width:100%;">
    <form class="layui-form" action="/admin/config/edit_post">
        <div class="layui-form-item">
            <label class="layui-form-label">App名称</label>
            <div class="layui-input-block">
                <input type="text" name="config[name]" value="{$info.config.name}" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">Logo：</label>
            <div class="layui-input-block">
                <input type="text" id="fengmian" name="config[logo]" style="width:400px;display:inline-block" value="{$info.config.logo}" placeholder="请输入App Logo地址" class="layui-input">
                <a href="javascript:;" id="fengmianupload" class="layui-btn">上传图片</a>
                <div class="img-wrap" id="fengmian-box" style="background:#f8f8f8;text-align:center;">
                    <if condition="$info['config']['logo']">
                        <img src="{$info.config.logo}">
                        <else/>
                        <span style="font-size:30px;line-height:80px;color:#eee;">Logo</span>
                    </if>
                </div>
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">App描述</label>
            <div class="layui-input-block">
                <textarea name="config[desc]" id="editor" placeholder="请输入App简介" style="width: 700px;height:350px;">{$info.config.desc}</textarea>
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-input-block">
                <input type="hidden" name="name" value="站点设置">
                <input type="hidden" name="key" value="{$info.key}">
                <button class="layui-btn" lay-submit lay-filter="*">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
</div>
<!-- 配置文件 -->
<script type="text/javascript" src="/Public/qiniu_ueditor/ueditor.config.js?v=1.0.5"></script>
<!-- 编辑器源码文件 -->
<script type="text/javascript" src="/Public/qiniu_ueditor/ueditor.all.js?v=1.0.9"></script>
<script>
    //实例化编辑器
    var um = UE.getEditor('editor');
    layui.use(['catadmin'], function() {

    });
</script>